﻿using System;

namespace Useful.MVP2
{
    public interface IDetailView : IView
    {
        event EventHandler<EventArgs> CloseOKClicked;
        event EventHandler<EventArgs> CloseCancelClicked;

        bool EnableWrite { get; set; }

        bool IsOK { get; set; }

        void Init(object repository, bool allowWrite, object item);
        event EventHandler<InitDetailViewEventArgs> ViewInited;
    }
}
